toggle menu
JxBrowser
8.2.1
jvm
switch theme
search in API
JxBrowser
/
com.teamdev.jxbrowser.net
/
[jvm]Network
Network
public
interface
Network
implements
ProfileService
,
Observable
<
T
>
,
Advisable
<
P
>
A service that provides access to the network-level functionality.
Members
Functions
accept
Language
Link copied to clipboard
public
abstract
String
acceptLanguage
(
)
Returns a string that represents the Accept-Language request-header field.
public
abstract
void
acceptLanguage
(
String
language
)
Configures the accept language.
get
Link copied to clipboard
public
abstract
Optional
<
C
>
get
<
C
extends
P
>
(
Class
<
C
>
callbackClass
)
Returns an
Optional
that contains the callback of the given type or an empty
Optional
if there is no registered callback with the given type.
http
Auth
Preferences
Link copied to clipboard
public
abstract
HttpAuthPreferences
httpAuthPreferences
(
)
Returns an HTTP authorization preferences.
on
Link copied to clipboard
public
abstract
Subscription
on
<
E
extends
T
>
(
Class
<
E
>
eventClass
,
Observer
<
E
>
observer
)
Subscribes the given event
observer
to receive the events of the given
eventClass
.
profile
Link copied to clipboard
public
abstract
Profile
profile
(
)
Returns the profile of this service.
remove
Link copied to clipboard
public
abstract
C
remove
<
C
extends
P
>
(
Class
<
C
>
callbackClass
)
Removes a particular service callback.
set
Link copied to clipboard
public
abstract
C
set
<
C
extends
P
>
(
Class
<
C
>
callbackClass
,
C
callback
)
Sets a particular service callback.
user
Agent
Link copied to clipboard
public
abstract
String
userAgent
(
)
Returns a string that represents the default user-agent.